package com.wy.about_attributes.demo1;

/**
 * @author 美女
 * @date 2022/04/20 10:16
 **/
public class Main5 {
    public static void main(String[] args) {
        Thread main=Thread.currentThread();
        System.out.println(main.getPriority());
        main.setPriority(Thread.MAX_PRIORITY);
        System.out.println(main.getPriority());
        main.setPriority(Thread.NORM_PRIORITY);
        System.out.println(main.getPriority());
        main.setPriority(Thread.MIN_PRIORITY);
        System.out.println(main.getPriority());
    }
}
